<%@page contentType="text/html;charset=UTF-8" %>
<%@page pageEncoding="UTF-8" %>
<%@ page session="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%
    String params = request.getQueryString();
    if (params == null) {
        params = "";
    }
    params = params.replaceAll("(&lang=)[^&]*", "");
    params = params.replaceAll("(lang=)[^&]*", "");
%>
<span style="float: right">
        <a href="?<%=params%>&lang=en">en</a>
        |
        <a href="?<%=params%>&lang=de">de</a>
        |
        <a href="?<%=params%>&lang=ru">ru</a>
    &nbsp;|&nbsp;
    <a href="<c:url value='/j_spring_security_logout'/>">
        <spring:message code="header.actions.logout"/>
    </a>
</span>

<div class="pageHeader clear">
    <%--<p>Page:${param.page}</p>--%>
    <a href="<c:url value='/' />" <c:if test="${param.page=='home'}">class="active"</c:if>>
        <spring:message code="menu.home"/>
    </a>
    <a href="<c:url value='/users/view' />" <c:if test="${param.page=='users'}">class="active"</c:if>>
        <spring:message code="menu.users"/>
    </a>
    <a href="<c:url value='/licenses/view' />" <c:if test="${param.page=='licenses'}">class="active"</c:if>>
        <spring:message code="menu.licenses"/>
    </a>
</div>

